package com.ubxtech.jdk21.util;

import java.time.Duration;
import java.util.concurrent.Executors;
import java.util.stream.IntStream;

/**
 * @author Victor.Xiao
 * @since 2024-02-29 20:20
 **/
public class Test01 {
    public static void main(String[] args) {
//        try (var executor = Executors.newVirtualThreadPerTaskExecutor()) {
//            IntStream.range(0, 10000).forEach(i -> executor.submit(() -> {
//                Thread.sleep(Duration.ofSeconds(1));
//                return i;
//            }));
//        }
    }
}
